/*
 * @Descripttion: GGB
 * @version: 1.0
 * @Author: GGB
 * @Date: 2021-08-24 16:19:34
 * @LastEditors: GGB
 * @LastEditTime: 2021-08-24 16:25:29
 */
import 'package:flutter/material.dart';

class FllowItem extends StatelessWidget {
  const FllowItem({Key key}) : super(key: key);

  @override
  Widget build(BuildContext context) => SizedBox(
        height: 82,
        child: Row(
          crossAxisAlignment: CrossAxisAlignment.start,
          children: [
            Expanded(flex: 1, child: CircleAvatar()),
            Expanded(
                flex: 10,
                child: Padding(
                  padding: const EdgeInsets.all(8.0),
                  child: Column(
                    children: [
                      Expanded(
                        child: Row(
                          crossAxisAlignment: CrossAxisAlignment.start,
                          children: [
                            Expanded(
                              flex: 10,
                              child: Text.rich(TextSpan(children: [
                                TextSpan(
                                    text: "Dreamwalker",
                                    style: TextStyle(
                                        fontSize: 13,
                                        fontWeight: FontWeight.bold)),
                                TextSpan(
                                    text:
                                        " just signed up for clubhouse Follow theme?",
                                    style: TextStyle(
                                      fontSize: 13,
                                    ))
                              ])),
                            ),
                            Expanded(
                                flex: 2,
                                child: Align(
                                  alignment: Alignment.topRight,
                                  child: Text(
                                    "36m ago",
                                    style: TextStyle(fontSize: 10),
                                  ),
                                ))
                          ],
                        ),
                      ),
                      Expanded(
                        child: Padding(
                          padding: const EdgeInsets.symmetric(vertical: 2),
                          child: Row(
                            children: [
                              SizedBox(width: 16),
                              Expanded(
                                child: Container(
                                  alignment: Alignment.center,
                                  decoration: ShapeDecoration(
                                    shape: StadiumBorder(),
                                    color: Colors.blue,
                                  ),
                                  child: Text(
                                    "Follow",
                                    style: TextStyle(
                                      height: 1,
                                      color: Colors.white,
                                      letterSpacing: 1.3,
                                      fontWeight: FontWeight.bold,
                                    ),
                                  ),
                                ),
                              ),
                              SizedBox(width: 16),
                              Expanded(
                                child: Container(
                                  alignment: Alignment.center,
                                  decoration: ShapeDecoration(
                                    shape: StadiumBorder(),
                                    color: Colors.white,
                                  ),
                                  child: Text(
                                    "Not yet, thx!",
                                    style: TextStyle(
                                      height: 1,
                                      fontWeight: FontWeight.bold,
                                    ),
                                  ),
                                ),
                              ),
                              SizedBox(width: 16),
                            ],
                          ),
                        ),
                      )
                    ],
                  ),
                ))
          ],
        ),
      );
}
